package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.dto.ReservationDto;
import com.zzyl.nursing.domain.pojo.Reservation;

import java.util.List;

/**
 * 预约信息Service接口
 */
public interface IReservationService extends IService<Reservation> {


    /**
     * 2.1 查询当天取消预约数量
     */
    Long getAllCancellerdCount();

//    /**
//     * 2.2 查询每个时间段剩余预约次数
//     */
//    CountByTimeVo getReservationCount(long time);

    /**
     * 2.3 新增预约
     */
    void add(ReservationDto reservationDto);

    /**
     * 2.4分页查询预约
     */
    List<Reservation> selectReservationList();

    /**
     * 2.5取消预约
     */
    void cancel(Long id);

}
